package com.yd.mvc.pc;

import com.yd.domain.sys.PermEnum;
import com.yd.mvc.baseController.BaseExController;
import com.yd.mvc.baseController.util.AuthUtil;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by 广 on 2016/5/25.
 */
@Controller
@RequestMapping("/xdd")
public class XddPageController extends BaseExController {
    @RequestMapping("/**")
    public String getPage(ModelMap model){
        AuthUtil.AuthedUser user=AuthUtil.getCurrentUser();
        if(!user.getPermCodeList().contains(PermEnum.BACK_LOGIN_MANAGER)){
           // return "/jewellery/index";
            return "redirect:/jewellery/common/goods/list";
        }
        return "/xdd/index";
    }
}
